import React from 'react'
import { createRoot } from "react-dom/client";
import { ConfigProvider } from 'antd';
import { mergeStyles, ThemeProvider } from '@fluentui/react';
import zhCN from 'antd/lib/locale/zh_CN';
import 'antd/dist/reset.css';
import './index.css'
import App from './App'
import MYTheme from './theme';
import { HashRouter } from 'react-router-dom';

mergeStyles({
  ':global(body,html,#root)': {
    margin: 0,
    padding: 0,
  },
});


createRoot((document.getElementById('root') as Element)).render(
  <React.StrictMode>
    <ThemeProvider theme={MYTheme}>
      <ConfigProvider locale={zhCN}>
        <HashRouter>
          <App></App>
        </HashRouter>
      </ConfigProvider>
    </ThemeProvider>
  </React.StrictMode>,
)
